
#include "seqstack.h"
/*
栈的特点 先进后出
*/
int main(int argc, char const *argv[])
{
    /* code */
    //data_t data[] = {'a','n','i','h','c',' ','e','v','o','l',' ','I'}； 要把这些数据输出
    // 创建
    int i = 0, j = 0;
    seqstack * s = NULL;
    s = create_empty_seqstack();
    // 压栈
    dataType data[] = {'a','n','i','h','c',' ','e','v','o','l',' ','I'};
    while(!is_full_seqstack(s)) {
            push_seqstack(s, data[j++]);
    }
    
        
    
    // 出栈
    while(!is_empty_seqstack(s)) {
        printf("%c", pop_seqstack(s));
    }
    free(s);
    s = NULL;
    
    
    return 0;
}
